export const date2Text = (targetDate) => {
    const now = +new Date(new Date().toLocaleDateString('zh-CN'))
    const target = +new Date(new Date(targetDate).toLocaleDateString('zh-CN'))
    const map = ['今天', '明天', '后天']
    const day = 1000 * 60 * 60 * 24
    const res = (target - now) / day
    return map[res] || targetDate
}